package com.gengzp.common.model.message.req;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName AddConsumerReq
 * @Description 添加消费者请求实体
 * @Author gengzp
 * @Date 2025/6/2 17:43
 */
@Data
@ApiModel(description = "添加消费者请求实体")
public class AddMqConsumerReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -2801590630625324195L;

    /**
     * 关联主题名
     */
    @NotBlank(message = "消费者关联的主题名不能为空")
    @ApiModelProperty(value = "关联主题名", required = true)
    private String relationTopicName;

    /**
     * 消费者服务名
     */
    @NotBlank(message = "消费者服务名不能为空")
    @ApiModelProperty(value = "消费者服务名", required = true)
    private String consumerServiceName;

    /**
     * 消费者描述
     */
    @NotBlank(message = "消费者描述不能为空")
    @ApiModelProperty(value = "消费者描述", required = true)
    private String consumerDescription;

    /**
     * 消费者url
     */
    @NotBlank(message = "消费者url不能为空")
    @ApiModelProperty(value = "消费者url", required = true)
    private String consumerUrl;

}
